#ifndef __BSP_US015_ICU_IO_H__
#define __BSP_US015_ICU_IO_H__

/*uint8_t uint32_t... define*/
#include <stdint.h>

/*__STATIC_INLINE define */
#include "cmsis_compiler.h"
//#define __STATIC_INLINE static inline

void bsp_us015_icu_io_init(void);
void bsp_us015_icu_io_interrupt(uint32_t u4ChannelID);
uint32_t bsp_us015_icu_io_get_pulseWidth(uint32_t u4ChannelID);

#define MAX_ICU_CHANNEL         (2)

#define BSP_US015_IO_CH_MAX     (MAX_ICU_CHANNEL)
#define BSP_US015_IO_CH0        (0)
#define BSP_US015_IO_CH1        (1)

#endif